﻿using AllSqlHelperWin.NoSQLHelperForms;
using AllSqlHelperWin.NoSQLHelperForms.MongoDBForms;
using AllSqlHelperWin.SQLHelperForms.AccessForms;
using AllSqlHelperWin.SQLHelperForms.DB2Forms;
using AllSqlHelperWin.SQLHelperForms.MSSqlForms;
using AllSqlHelperWin.SQLHelperForms.OracleForms;
using AllSqlHelperWin.SQLHelperForms.PostgreSQLForms;
using AllSqlHelperWin.SQLHelperForms.SQLiteForms;
using AllSqlHelperWin.SQLHelperForms.SybaseForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AllSqlHelperWin
{
    public partial class MainForm1 : Form
    {
        public MainForm1()
        {
            InitializeComponent();
        }

        private void MainForm1_Load(object sender, EventArgs e)
        {

        }

        #region 关系型数据库
        private void btnMSSqlDB_Click(object sender, EventArgs e)
        {
            new MSSqlHelperForm().Show(); 
        }

        private void btnMysql_Click(object sender, EventArgs e)
        {
            new MysqlHelperForm().Show(); 
        }

        private void btnOracle_Click(object sender, EventArgs e)
        {
            new OracleHelperForm().Show(); 
        }

        private void btnSQLite_Click(object sender, EventArgs e)
        {
            new SQLiteHelperForm().Show();
        }

        private void btnPostgreSQL_Click(object sender, EventArgs e)
        {
            new PostgreSQLHelperForm().Show();
        }

        private void btnAccess_Click(object sender, EventArgs e)
        {
            new AccessHelperForm().Show();
        }

        private void btnDB2_Click(object sender, EventArgs e)
        {
            new DB2SqlHelperForm().Show();
        }

        private void btnSybase_Click(object sender, EventArgs e)
        {
            new SybaseHelperForm().Show();
        }

        #endregion 关系型数据库

        #region 非关系型数据库
        private void btnRedis_Click(object sender, EventArgs e)
        {
            RedisHelperForm redisHelperForm = new RedisHelperForm();
            redisHelperForm.Show();
        }

        private void btnMongoDB_Click(object sender, EventArgs e)
        {
            new MongoDBHelperForm().Show();
        }
        #endregion 非关系型数据库

        #region 时序数据库
        private void btnInfluxDB_Click(object sender, EventArgs e)
        {
            MessageBox.Show("功能未实现！");
        }

        private void btnTimescaleDB_Click(object sender, EventArgs e)
        {
            MessageBox.Show("功能未实现！");
        }
        #endregion 时序数据库
    }
}
